#include "commodityattribute.h"

CommodityAttribute::CommodityAttribute()
{
}

CommodityAttribute::CommodityAttribute(const CommodityAttribute &org)
{
    m_attributenumber = org.m_attributenumber;
    m_attribute = org.m_attribute;
}

CommodityAttribute::CommodityAttribute(const QString attributenumber, const QString attribute)
{
    m_attributenumber = attributenumber;
    m_attribute = attribute;
}

QString CommodityAttribute::get_attribute_number() const
{
    return m_attributenumber;
}

QString CommodityAttribute::get_attribute() const
{
    return m_attribute;
}

CommodityAttribute &CommodityAttribute::operator =(const CommodityAttribute &other)
{
    if (this == &other)
        return *this;
    this->m_attributenumber = other.get_attribute_number();
    this->m_attribute = other.get_attribute();

    return *this;
}
